package com.example.rental_system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.rental_system.pojo.House;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

@Service
public interface HouseService extends IService<House> {
    IPage<House> queryByUserId(int userId, Integer current, Integer size);
    String upload(MultipartFile multipartFile);

    IPage<House> queryAll(int i, int i1);

    String updateHouse(String img, MultipartFile file);

    IPage<House> queryHouseByUserId(String userName,Integer start,Integer size);

    IPage<House> queryHousesByUserId(String userName, int i, int i1);
}
